package com.baogu.factoryjob.service.remote;

import com.baogu.model.common.HttpResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "baogu-database")
public interface SensorWarningRemoteService {

    @RequestMapping(method = RequestMethod.GET,value = "/sensorWarning/getNewSensorWarning")
    HttpResult getNewSensorWarning();

    @RequestMapping(method = RequestMethod.GET,value = "/sensorWarning/completeImpSensorWarning/{vsion}")
    HttpResult completeImpSensorWarning(@RequestParam("vsion") String vsion);

    @RequestMapping(method = RequestMethod.GET,value = "/sensorWarning/getSensorSensorWarningByVsion/{vsion}/{tableDate}")
    HttpResult getSensorSensorWarningByVsion(@RequestParam("vsion") String vsion,@RequestParam("tableDate") String tableDate);
}
